package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WithdrawalMapper;
import com.ruoyi.system.domain.Withdrawal;
import com.ruoyi.system.service.IWithdrawalService;

/**
 * 提现管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-21
 */
@Service
public class WithdrawalServiceImpl implements IWithdrawalService 
{
    @Autowired
    private WithdrawalMapper withdrawalMapper;

    /**
     * 查询提现管理
     * 
     * @param id 提现管理主键
     * @return 提现管理
     */
    @Override
    public Withdrawal selectWithdrawalById(Long id)
    {
        return withdrawalMapper.selectWithdrawalById(id);
    }

    /**
     * 查询提现管理列表
     * 
     * @param withdrawal 提现管理
     * @return 提现管理
     */
    @Override
    public List<Withdrawal> selectWithdrawalList(Withdrawal withdrawal)
    {
        return withdrawalMapper.selectWithdrawalList(withdrawal);
    }

    /**
     * 新增提现管理
     * 
     * @param withdrawal 提现管理
     * @return 结果
     */
    @Override
    public int insertWithdrawal(Withdrawal withdrawal)
    {
        return withdrawalMapper.insertWithdrawal(withdrawal);
    }

    /**
     * 修改提现管理
     * 
     * @param withdrawal 提现管理
     * @return 结果
     */
    @Override
    public int updateWithdrawal(Withdrawal withdrawal)
    {
        return withdrawalMapper.updateWithdrawal(withdrawal);
    }

    /**
     * 批量删除提现管理
     * 
     * @param ids 需要删除的提现管理主键
     * @return 结果
     */
    @Override
    public int deleteWithdrawalByIds(Long[] ids)
    {
        return withdrawalMapper.deleteWithdrawalByIds(ids);
    }

    /**
     * 删除提现管理信息
     * 
     * @param id 提现管理主键
     * @return 结果
     */
    @Override
    public int deleteWithdrawalById(Long id)
    {
        return withdrawalMapper.deleteWithdrawalById(id);
    }
}
